package com.bjpowernode.shop.feign;

import com.bjpowernode.shop.domain.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "product-service",fallback = ProdServiceFeignImpl.class)
public interface ProdServiceFeign {
    @GetMapping("/prod/prod/listBySkuId")
    List<Sku> listBySkuId(@RequestParam("skuIdList") List<Long> skuIdList);
}
